package com.truyen.service;

import java.util.List;

import com.truyen.persistence.entity.AnhDep;
import com.truyen.persistence.entity.LoaiAnhDep;
import com.truyen.utils.PagingInfo;


public interface AnhDepService {
	
	// tao moi
	void save(AnhDep entity);

	//tim theo id
	AnhDep findById(Long id);

	//lay tat ca
	List<AnhDep> getAll();

	AnhDep findByProperty(String column, Object value);

	List<AnhDep> getAllLst(String kwSearch, String sort, String sortBy,
			PagingInfo pInfo);

	List<AnhDep> getAllWithIsGot(boolean isGot);

	void updateIsGot(long id, boolean b);

	List<AnhDep> getLstAnhDep(PagingInfo pInfo, boolean isGot, String orderBy);

	void setHot(Long id);

	void setIsDelete(Long id);

	void delete(Long id);

	List<AnhDep> getLstByType(LoaiAnhDep girlXinh, int i, String string, boolean isGot);

	List<AnhDep> getLstByType(LoaiAnhDep loaiAnhDep, PagingInfo pInfo,
			String string, boolean isGot);

	List<AnhDep> getListRandom(LoaiAnhDep loaiAnhDep, int maxLimit,	boolean isGot);

	List<Object> getObjectByNameUnsigned(String kwSearch, int max);

	void updateViews(Long idAnhDep, long views);

	List<AnhDep> getLstByPropertyWithPaging(String column, String kwSearch,
			String orderBy, PagingInfo pInfo, boolean isGot);
}
